package com.hedl.studyandjava8.test.practice.practice_graphical;

/**
 * @author Big Watermelon
 * @description 打印三角形
 * @date 2024/02/18/20:42
 */
public class StudyTrianglePrint {
    public static void main(String[] args) {
        for (int i = 1; i <= 5; i++){
            for (int j = 5; i <= j; j--){
                System.out.print(" ");
            }
            for (int j = 1; j <= i; j++){
                System.out.print("*");
            }
            for (int j = 1; j < i; j++){
                System.out.print("*");
            }
            System.out.println();
        }
    }
}
